<?php
namespace app\admin\controller;
use think\Controller;
use think\Session;
class Base extends Controller{
    function _initialize()
    {
        if (Session::get('user')!=='800li'){
            $this->redirect('/admin/login');
        }
    }
}